package com.amos.muexamclient.sys.service.impl;

import com.amos.muexamcore.core.BaseMapper;
import com.amos.muexamcore.core.AbstractPageService;
import com.amos.muexamclient.sys.service.dto.SysOperLogDTO;
import com.amos.muexamclient.sys.entity.SysOperLogEntity;
import com.amos.muexamclient.sys.service.SysOperLogService;
import com.amos.muexamclient.sys.mapper.SysOperLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.sys.service.impl
 * @ClassName SysOperLogServiceImpl
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-24 14:35:41
 * @Version 1.0
 **/
@Service
public class SysOperLogServiceImpl extends AbstractPageService<SysOperLogDTO, SysOperLogEntity> implements SysOperLogService{

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    /**
     * 条件查询
     *
     * @param dto 查询的条件
     */
    @Override
    public List<SysOperLogDTO> list(SysOperLogDTO dto) {
        return this.getMapper().select(dto);
    }

    /**
     * 返回BaseDao对象
     *
     */
    @Override
    public BaseMapper<SysOperLogEntity,SysOperLogDTO> getMapper() {
        return sysOperLogMapper;
    }

    /**
     * 保存之间的校验
     *
     * @param dto 保存的对象
     */
    @Override
    public void preValidate(SysOperLogDTO dto) {

    }

    /**
     * 添加子集数据
     *
     * @param id 主表ID
     * @param dto 主表DTO对象
     */
    @Override
    public void appendSubsidiary(String id, SysOperLogDTO dto) {

    }
}
